package org.example.cmsvue;

import cn.dev33.satoken.SaManager;
import com.baomidou.mybatisplus.generator.FastAutoGenerator;
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("org.example.cmsvue.mapper")
public class CmsVueApplication {

    public static void main(String[] args) {
        SpringApplication.run(CmsVueApplication.class, args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
//        FastAutoGenerator.create("jdbc:mysql://221.131.137.219:31006/cms?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&rewriteBatchedStatements=TRUE",
//                        "root", "a157242")
//                .globalConfig(builder -> builder
//                        .author("laifeng")
//                        .outputDir("C:\\laifeng\\src\\main\\java")
//                        .commentDate("yyyy-MM-dd")
//                )
//                .packageConfig(builder -> builder
//                        .parent("com.example.cmsvue")
//                        .entity("entity")
//                        .mapper("mapper")
//                        .service("service")
//                        .serviceImpl("service.impl")
//                        .xml("mapper.xml")
//                )
//                .strategyConfig(builder -> builder
//                        .entityBuilder()
//                        .enableLombok()
//                )
//                .templateEngine(new FreemarkerTemplateEngine())
//                .execute();


    }

}
